set(INCLUDE_DIRS
    ${CMAKE_CURRENT_SOURCE_DIR}/.
    ${CMAKE_CURRENT_SOURCE_DIR}/../include
    ${CMAKE_CURRENT_SOURCE_DIR}/../build/third/unit-testing/
    ${CMAKE_CURRENT_SOURCE_DIR}/../build/third/unit-testing/src/
)

set(DEP_LIBS
    ${SDK_NAME}
    check
    pthread
)

set(DEP_LIBS_DIR
    ${CMAKE_CURRENT_SOURCE_DIR}/../build/third/unit-testing/src/
    ${CMAKE_CURRENT_SOURCE_DIR}/../build/test/
    ${CMAKE_CURRENT_SOURCE_DIR}/../build/src/
)

file(GLOB C_SOURCE_FILE "*.c")

link_directories(${DEP_LIBS_DIR})
include_directories(${INCLUDE_DIRS})

add_executable(interface_test ${C_SOURCE_FILE})
target_link_libraries(interface_test ${DEP_LIBS})